package org.linloong.modules.apis.disease.entity;

import com.alibaba.fastjson2.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Package: org.linloong.modules.apis.disease.entity.DiseaseChatHistory
 * @Author: guxin
 * @CreateTime: 2025/10/18 21:15
 * @Description: 病虫害检测记录
 * @Version: 3.0
 */
@Getter
@Setter
@ToString
@TableName("disease_chat_history")
@Accessors(chain = true)
public class DiseaseChatHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 会话 ID
     */
    @TableField("conversation_id")
    private String conversationId;

    /**
     * 内容
     */
    @TableField(value = "content")
    private JSONArray content;

    /**
     * 时间
     */
    @TableField("timestamp")
    private LocalDateTime timestamp;
}
